<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			@keyframes myAnim{
				/* 从元素的最初状态开始，form可以不写 */
				/* from{
					
				} */
				to{
					width: 300px;
					background-color: #ADFF2F;
					transform: rotate(180deg) translateY(-100%);
				}
			}
			
			.d1 {
				width: 100px;
				height: 100px;
				background-color: #00FFFF;
				animation-name: myAnim;
				animation-duration: 2s;
				animation-iteration-count: infinite;
				animation-direction: alternate;
			}
			
			/* .d1:hover {
				width: 300px;
				transform: rotate(180deg);
				background-color: red;
			 } */
		</style>
	</head>
	<body>
		<div class="d1">
			
		</div>
	</body>
</html>
